/* Dashboard 页面 - 简化设计 */
.dashboard-layout {
  @apply min-h-screen;
  background: #f5f5f7;
  background-image: 
    radial-gradient(circle at 25% 25%, rgba(255, 255, 255, 0.8) 0%, transparent 50%),
    radial-gradient(circle at 75% 75%, rgba(59, 130, 246, 0.05) 0%, transparent 50%);
}

.dashboard-content {
  @apply overflow-auto;
  padding: 0;
}

.dashboard-container {
  @apply max-w-7xl mx-auto px-6 py-6;
  padding-top: 60px;
}

/* 网格布局 */
.dashboard-grid {
  @apply grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-10;
}

/* 功能卡片基础样式 */
.feature-card {
  @apply relative overflow-hidden cursor-pointer;
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 16px;
  box-shadow: 
    0 4px 16px rgba(0, 0, 0, 0.04),
    0 8px 32px rgba(0, 0, 0, 0.02);
  transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  min-height: 120px;
}

.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: 
    0 8px 32px rgba(0, 0, 0, 0.08),
    0 16px 64px rgba(0, 0, 0, 0.04);
  border-color: rgba(255, 255, 255, 0.4);
}

.feature-card:active {
  transform: translateY(-2px);
  transition: all 0.1s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* 卡片内容 */
.card-content {
  @apply flex items-center p-5 h-full;
  text-align: left
}

.card-icon {
  @apply flex items-center justify-center mr-4 flex-shrink-0;
  width: 48px;
  height: 48px;
  border-radius: 14px;
  font-size: 22px;
  transition: all 0.3s ease;
}

.card-text {
  @apply flex-1;
}

.card-title {
  @apply text-lg font-semibold mb-1;
  color: #1d1d1f;
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.2;
}

.card-description {
  @apply text-sm text-gray-600 mb-0;
  font-weight: 400;
  line-height: 1.4;
  letter-spacing: 0.01em;
}

/* 图标颜色主题 */
.icon-orange {
  background: linear-gradient(135deg, #ff9500 0%, #ff6b00 100%);
  color: white;
  box-shadow: 0 4px 16px rgba(255, 149, 0, 0.3);
}

.icon-blue {
  background: linear-gradient(135deg, #007aff 0%, #0051d5 100%);
  color: white;
  box-shadow: 0 4px 16px rgba(0, 122, 255, 0.3);
}

.icon-green {
  background: linear-gradient(135deg, #34c759 0%, #30d158 100%);
  color: white;
  box-shadow: 0 4px 16px rgba(52, 199, 89, 0.3);
}

.icon-purple {
  background: linear-gradient(135deg, #af52de 0%, #bf5af2 100%);
  color: white;
  box-shadow: 0 4px 16px rgba(175, 82, 222, 0.3);
}

.icon-indigo {
  background: linear-gradient(135deg, #5856d6 0%, #5ac8fa 100%);
  color: white;
  box-shadow: 0 4px 16px rgba(88, 86, 214, 0.3);
}

.icon-cyan {
  background: linear-gradient(135deg, #00d4aa 0%, #00a8cc 100%);
  color: white;
  box-shadow: 0 4px 16px rgba(0, 212, 170, 0.3);
}

.icon-gray {
  background: linear-gradient(135deg, #8e8e93 0%, #636366 100%);
  color: white;
  box-shadow: 0 4px 16px rgba(142, 142, 147, 0.3);
}

/* 卡片悬停效果 */
.feature-card:hover .card-icon {
  transform: scale(1.05);
}

.feature-card:hover .icon-orange {
  box-shadow: 0 6px 24px rgba(255, 149, 0, 0.4);
}

.feature-card:hover .icon-blue {
  box-shadow: 0 6px 24px rgba(0, 122, 255, 0.4);
}

.feature-card:hover .icon-green {
  box-shadow: 0 6px 24px rgba(52, 199, 89, 0.4);
}

.feature-card:hover .icon-purple {
  box-shadow: 0 6px 24px rgba(175, 82, 222, 0.4);
}

.feature-card:hover .icon-indigo {
  box-shadow: 0 6px 24px rgba(88, 86, 214, 0.4);
}

.feature-card:hover .icon-cyan {
  box-shadow: 0 6px 24px rgba(0, 212, 170, 0.4);
}

.feature-card:hover .icon-gray {
  box-shadow: 0 6px 24px rgba(142, 142, 147, 0.4);
}

/* 响应式设计 */
@media (max-width: 768px) {
  .dashboard-container {
    @apply px-4 py-4;
  }
  
  .dashboard-grid {
    @apply grid-cols-1 gap-3;
  }
  
  .feature-card {
    min-height: 100px;
    border-radius: 14px;
  }
  
  .card-content {
    @apply p-4;
  }
  
  .card-icon {
    width: 40px;
    height: 40px;
    font-size: 18px;
    border-radius: 12px;
    @apply mr-3;
  }
  
  .card-title {
    @apply text-base;
  }
  
  .card-description {
    @apply text-xs;
  }
}

@media (min-width: 769px) and (max-width: 1024px) {
  .dashboard-grid {
    @apply grid-cols-2;
  }
}

@media (min-width: 1025px) {
  .dashboard-grid {
    @apply grid-cols-3;
  }
}

@media (max-width: 480px) {
  .dashboard-container {
    @apply px-3 py-3;
  }
  
  .feature-card {
    min-height: 90px;
    border-radius: 12px;
  }
  
  .card-content {
    @apply p-3;
  }
  
  .card-icon {
    width: 36px;
    height: 36px;
    font-size: 16px;
    border-radius: 10px;
  }
}

/* 深色模式支持 */
@media (prefers-color-scheme: dark) {
  .dashboard-layout {
    background: #000000;
    background-image: 
      radial-gradient(circle at 25% 25%, rgba(255, 255, 255, 0.02) 0%, transparent 50%),
      radial-gradient(circle at 75% 75%, rgba(59, 130, 246, 0.03) 0%, transparent 50%);
  }
  
  .feature-card {
    background: rgba(28, 28, 30, 0.8);
    border-color: rgba(255, 255, 255, 0.1);
  }
  
  .feature-card:hover {
    border-color: rgba(255, 255, 255, 0.2);
  }
  
  .card-title {
    color: #f5f5f7;
  }
  
  .card-description {
    color: #98989d;
  }
}

/* 动画效果 */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.dashboard-grid {
  animation: fadeInUp 0.6s ease-out;
}

/* 滚动条样式 */
.dashboard-content::-webkit-scrollbar {
  width: 6px;
}

.dashboard-content::-webkit-scrollbar-track {
  background: transparent;
}

.dashboard-content::-webkit-scrollbar-thumb {
  background: rgba(0, 0, 0, 0.1);
  border-radius: 3px;
}

.dashboard-content::-webkit-scrollbar-thumb:hover {
  background: rgba(0, 0, 0, 0.2);
} 